import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import { setupElementPlus } from './plugins/element-plus'
import directives from './directives'
import 'virtual:windi.css'
import './style.css'
import TimeLine from '@boyzcf/vue3-time-line'

// 创建Vue应用实例
const app = createApp(App)

// 创建Pinia实例
const pinia = createPinia()

// 安装插件
app.use(pinia)
app.use(router)
setupElementPlus(app)
directives(app)
app.use(TimeLine, { comName: 'TimeLine' })

// 挂载应用
app.mount('#app')
